package ar.com.tracking.navegacion_core.model;

/**
 *
 * @author Cuni
 */
public class Development extends OrderState{
    
 public Development(){}
 
 @Override
 public void cancelOrder(Order order) {
     OrderState newState = new Canceled();
     order.setState(newState);
 }
 
 @Override
 public void sendOrder(Order order){
     OrderState newState = new Sended();
     order.setState(newState);
 }
 
 @Override
 public void suspendOrder(Order order, OrderState previousState){
     OrderState newState = new Suspended(this);
     order.setState(newState);
 }
 
}
